package com.gs.core.service.dao;

import javax.sql.DataSource;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;

@Component
public class GsHibernateDAOFacade extends GsJdbcDAOFacade{
	HibernateTemplate hibernateTemplate;

	@Autowired
	@Required
	public void setSessionFactory(SessionFactory sessionFactory) {
		hibernateTemplate = new HibernateTemplate(sessionFactory);
	}
	public HibernateTemplate getHibernateTemplate() {
		return hibernateTemplate;
	}
}
